package com.zongrentaichai.run;

import com.zongrentaichai.lhh.Butterfly;
import com.zongrentaichai.lsh.Pig;
import com.zongrentaichai.luo.CowHorse;
import com.zongrentaichai.yu.Horse;
import com.zongrentaichai.LJ.Merman;
import com.zongrentaichai.ckh.Monkey;
import com.zongrentaichai.kun.kundedongwu;
import com.zongrentaichai.feeder.Feeder;

import java.util.Scanner;
import java.util.Random;

public class ZongRenTaiChai {
    public static void main(String[] args) {
        String[] animalNames = {"1.蝴蝶","2.牛马","3.鲛人","4.高鼻羚羊","5.猴","6.狰","7.马","8.猪"};
        for (int i = 0; i < animalNames.length;i++){
            System.out.println(animalNames[i]);
        }

        int no;
        do{
            System.out.println("请输入序号查看动物信息(1-8:动物,0:退出后进入喂食区):");
            Scanner input = new Scanner(System.in);
            no = input.nextInt();
            switch (no) {
                case 0:
                    System.out.println("已退出选择查看！");
                    break;
                case 1:
                    Butterfly rarebigsmart = new Butterfly();
                    rarebigsmart.setId("202112030002");
                    rarebigsmart.setName("稀有大聪明");
                    rarebigsmart.setGender("雌性");
                    rarebigsmart.setHome("南美洲");
                    rarebigsmart.setFood("花蜜，叶片和树浆");
                    System.out.println(rarebigsmart.toString());
                    break;
                case 2:
                    CowHorse xiaoluo = new CowHorse();
                    xiaoluo.setId("202112030025");
                    xiaoluo.setName("修勾");
                    xiaoluo.setGender("雄性");
                    xiaoluo.setHome("隐藏在人群中");
                    xiaoluo.setFood("嫩草");
                    System.out.println(xiaoluo.toString());
                    break;
                case 3:
                    Merman jiaoren = new Merman();
                    jiaoren.setId("202112030014");
                    jiaoren.setName("矶姬");
                    jiaoren.setGender("雌性");
                    jiaoren.setHome("隐藏在大海浪");
                    jiaoren.setFood("肉类");
                    System.out.println(jiaoren.toString());
                    break;
                case 4:
                    CowHorse saiban = new CowHorse();
                    saiban.setId("202112030022");
                    saiban.setName("塞班");
                    saiban.setGender("未知");
                    saiban.setHome("荒漠");
                    saiban.setFood("低矮灌木");
                    System.out.println(saiban.toString());
                    break;
                case 5:
                    Monkey poise = new Monkey();
                    poise.setId("202112030006");
                    poise.setName("孙悟空");
                    poise.setGender("无性别");
                    poise.setHome("天庭");
                    poise.setFood("蟠桃");
                    System.out.println(poise.toString());
                    break;
                case 6:
                    kundedongwu zheng = new kundedongwu();
                    zheng.setId("202104150087");
                    zheng.setName("狰");
                    zheng.setGender("未知");
                    zheng.setHome("章莪山");
                    zheng.setFood("未知");
                    System.out.println(zheng.toString());
                    break;
                case 7:
                    Horse zhanma = new Horse();
                    zhanma.setId("202112030018");
                    zhanma.setName("战马");
                    zhanma.setGender("雄性");
                    zhanma.setHome("在草原上");
                    zhanma.setFood("硬草");
                    System.out.println(zhanma.toString());
                    break;
                case 8:
                    Pig huhu = new Pig();
                    huhu.setId("202112030001");
                    huhu.setName("呼呼");
                    huhu.setGender("雄性");
                    huhu.setHome("在水里");
                    huhu.setFood("鱼");
                    System.out.println(huhu.toString());
                    break;
                default:
                    System.out.println("输入错误，请重新输入序号！");
                    break;
            }
        }while (no != 0);

        int food;
        System.out.println("现在进入我们的展厅，你可以在我们饲养员指导下选择动物喜欢的食物喂食");
        System.out.println("选择食物:1.花蜜，叶片和树浆 2.嫩草 3.肉类 4.低矮灌木 5.蟠桃 6.未知 7.硬草 8.鱼");
        do {
            food = 0;
            System.out.println("请输入序号喂食动物(1-8:动物,0:退出):");
            Scanner input = new Scanner(System.in);
            no = input.nextInt();
            switch (no){
                case 0:
                    System.out.println("游览喂食结束");
                    break;
                case 1:
                    Feeder lhh = new Feeder();
                    lhh.setName("红油油金牌饲养员");
                    lhh.speak();
                    System.out.println("输入(1-8)选择食物:");
                    food = input.nextInt();
                    if (food == 1){
                        System.out.println("on top of the world(大聪明开心到极点)");
                    }else {
                        System.out.println("fell dejected(大聪明黯然神伤)");
                    }
                    break;
                case 2:
                    Feeder lkj = new Feeder();
                    lkj.setName("小罗");
                    lkj.speak();
                    System.out.println("输入(1-8)选择食物:");
                    food = input.nextInt();
                    if (food == 2){
                        System.out.println("修勾很开心，摇了摇尾巴");
                    }else {
                        System.out.println("修勾没吃到自己喜欢的食物，有点伤心");
                    }
                    break;
                case 3:
                    Feeder lj = new Feeder();
                    lj.setName("平安");
                    lj.speak();
                    System.out.println("输入(1-8)选择食物:");
                    food = input.nextInt();
                    if (food == 3){
                        System.out.println("姬觉得很快乐并对你露出浅浅微笑");
                    }else {
                        System.out.println("姬看着你亮眼红光，你可能会姓名不保");
                    }
                    break;
                case 4:
                    Feeder lr = new Feeder();
                    lr.setName("牧羊人");
                    lr.speak();
                    System.out.println("输入(1-8)选择食物:");
                    food = input.nextInt();
                    if (food == 4){
                        System.out.println("宠物很开心");
                    }else {
                        System.out.println("宠物很伤心，雄性间发生激烈的角斗，鼻子膨胀起来");
                    }
                    break;
                case 5:
                    Feeder ckh = new Feeder();
                    ckh.setName("耀阳");
                    ckh.speak();
                    System.out.println("输入(1-8)选择食物:");
                    food = input.nextInt();
                    if (food == 5){
                        System.out.println("你在狗叫什么？");
                    }else {
                        System.out.println("十年王者无人知，一招狗叫天下知");
                    }
                    break;
                case 6:
                    Feeder hzk = new Feeder();
                    hzk.setName("雪糕");
                    hzk.speak();
                    System.out.println("输入(1-8)选择食物:");
                    food = input.nextInt();
                    if (food == 6){
                        System.out.println("开心的笑了并露出了獠牙");
                    }else {
                        System.out.println("伤心的流泪");
                    }
                    break;
                case 7:
                    Feeder lzy = new Feeder();
                    lzy.setName("野马饲养员");
                    lzy.speak();
                    System.out.println("输入(1-8)选择食物:");
                    food = input.nextInt();
                    if (food == 7){
                        System.out.println("开心地摆摆尾巴");
                    }else {
                        System.out.println("伤心沉默的低着头");
                    }
                    break;
                case 8:
                    Feeder lsh = new Feeder();
                    lsh.setName("瑟庄妮");
                    lsh.speak();
                    System.out.println("输入(1-8)选择食物:");
                    food = input.nextInt();
                    if (food == 8){
                        System.out.println("高兴的吃下了饕餮");
                    }else {
                        System.out.println("生气的刀了你");
                    }
                    break;
                default:
                    System.out.println("我们没有这这种动物，你可以重新选择");
                    break;
            }
        }while(no != 0);

        do {
            Random r = new Random();
            int ran = r.nextInt(100);
            System.out.println("请输入序号观看动物表演(1-8:动物,0:退出):");
            Scanner input = new Scanner(System.in);
            no = input.nextInt();
            switch (no){
                case 0:
                    System.out.println("游览表演结束");
                    break;
                case 1:
                    if(ran < 50) {
                        System.out.println("dancing one 颜色的袖子潇洒地托着玉铃。在那些日子里，斗争是红色的，是醉醺醺的。舞低柳室馨月，歌尽桃花扇底风");
                    }else {
                        System.out.println("dancing tow 珍珠流苏转动，星摇，花摇龙蛇动。舞低柳室心月，歌如桃花扇扇风裹香莫夕荷花成布，长愁罗凌波去");
                    }
                    break;
                case 2:
                    if(ran < 50) {
                        System.out.println("修勾跑到你面前放了个屁");
                    }else {
                        System.out.println("修勾拍一拍你肩膀叫了一声靓仔");
                    }
                    break;
                case 3:
                    if(ran < 50) {
                        System.out.println("她沉在冰冷的海水，发都有些凌乱了摇曳灯火的船已经远去了。但她看见了你，她声音换来的双腿踏着红舞鞋想与你起舞，戴着珍珠的遗骸勇敢的迎上你的那双眼");
                    }else {
                        System.out.println("请不要匆匆一面她一转身就沉入海平线，那传说中你为爱甘心被搁浅，她也可以为你潜入海里面");
                    }
                    break;
                case 4:
                    if(ran < 50) {
                        System.out.println("在草地上快速奔跑，嗅觉天气的变化");
                    }else {
                        System.out.println("成群结队冲向围栏");
                    }
                    break;
                case 5:
                    if(ran < 50) {
                        System.out.println("大胆！放我一马我是主播！放我一马我是主播！放我一马我是主播！！！你什么身份我什么地位！");
                    }else {
                        System.out.println("注意看我细节，两刀飞龙挂无缝鬼刀飞龙在天！顶到挂二轮无缝鬼刀飘斩跟上去，载入史册！");
                    }
                    break;
                case 6:
                    if(ran < 50) {
                        System.out.println("1");
                    }else {
                        System.out.println("2");
                    }
                    break;
                case 7:
                    if(ran < 50) {
                        System.out.println("野马奔腾，气壮山河");
                    }else {
                        System.out.println("千军万马，波澜不惊");
                    }
                    break;
                case 8:
                    if(ran < 50) {
                        System.out.println("在泥坑里滚了一圈说,我的弟弟乔治呢");
                    }else {
                        System.out.println("变身成了穷奇把在场的所有东西都刀了吃掉");
                    }
                    break;
                default:
                    System.out.println("我们没有这这种动物，你可以重新选择");
                    break;
            }
        }while(no != 0);
    }
}